<?php 
include '../../../php/conn.php'; 
if ($con) {
	if ($_POST) {
		
		$gradeid= $_POST['gradeid'];
 
		$masql = "DELETE FROM grade WHERE gradeid=$gradeid"; 
		$msy=mysql_query($masql); 
		if ($msy) {
			
			echo '{"status":"200"}';
		} else {
			//sql语句错误
			echo '{"status":"501"}';
		}
	 
	}  
	 
}
//关闭数据库
mysql_close($con);
?>